package com.ahwei.context;

import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

/**
 * @author：ahwei163@qq.com
 *
 * @date: 202*-03-06 19:13:28
 * @description: 这是一个Java文件！
 */
public class AppContext {
    /*每页显示数据条数*/
    public static final int PAGE_COUNT = 5;
    public static final int INDEX_COUNT = 4;
    /*角色类型 管理员*/
    public static final int VIP_VIDEO = 2;
    /*角色类型 管理员*/
    public static final int ROLE_ADMIN = 0;
    /*角色类型 学生*/
    public static final int ROLE_STUDENT = 1;
    /*角色类型 老师*/
    public static final int ROLE_TEACHER = 2;
    /*角色类型 vip学生*/
    public static final int ROLE_VIP_STUDENT = 3;
    /*角色类型 账号禁用*/
    public static final int ROLE_ACCOUNT_PROHIBIT_USE = 4;

    /*视频状态集合*/
    public static final Map<String, Object> videoStatus = new HashMap<>();

    static {
        videoStatus.put("下架", 0);
        videoStatus.put("免费", 1);
        videoStatus.put("VIP尊享", 2);

        videoStatus.put("0", "下架");
        videoStatus.put("1", "免费");
        videoStatus.put("2", "VIP尊享");
    }

}
